#include"list1.cpp"
Complex::Complex(float r, float i)
{
	real = r;
	imag = i;
}
ostream& operator<<(ostream& out, const Complex& com)
{
	out << com.real;
	if (com.imag != 0)
	{
		if (com.imag > 0)
			out << "+";
		out << com.imag << "i";
	}
	out << endl;
	return out;
}
istream& operator>>(istream& in, Complex& com)
{
	in >> com.real >> com.imag;
	return in;
}